<template>
	<view class="p30">
		<view class="flex row-between col-end">
			<text class="u-line-1 flex1">{{noticeData.name}}</text>
			<text class="color8 fs24 w220">{{noticeData.create_time}}</text>
		</view>
		<view class="mt30" v-html="noticeData.detail"></view>
	</view>
</template>

<script>
	export default {
		name: "noticeDetail",
		data() {
			return {
				id: '',
				noticeData: {},
			};
		},
		onLoad(option) {
			this.id = option.id
			this.getData()
		},
		methods: {
			getData() {
				this.$api.announce_detail({ announce_id: this.id }).then(res => {
					this.noticeData = res.data.data
				})
			}
		}
	}
</script>

<style lang="scss">
page {
	background-color: #FFFFFF;
}
</style>
